package com.example.myapplication;

import java.io.Serializable;

/**
 * 书籍数据模型
 */
public class Book implements Serializable {
    private int id; // 数据库自增ID
    private String bookNumber; // 书号
    private String bookName; // 书名
    private String userEmail; // 用户邮箱（用于区分不同用户的数据）

    public Book() {
    }

    public Book(String bookNumber, String bookName, String userEmail) {
        this.bookNumber = bookNumber;
        this.bookName = bookName;
        this.userEmail = userEmail;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBookNumber() {
        return bookNumber;
    }

    public void setBookNumber(String bookNumber) {
        this.bookNumber = bookNumber;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }
}
